package com.training.persistence.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "PLAYER")
public class Player implements Serializable {

	private static final long serialVersionUID = -2679124137065643827L;

	@Id
	@Column(name = "USER_NAME", length = 25)
	private String userName;

	@Column(name = "NAME", length = 25)
	private String name;

	@Column(name = "FIRST_NAME", length = 25)
	private String firstName;
	
	@Column(name = "LAST_NAME", length = 25)
	private String lastName;
	
	@Column(name = "USER_ID")
	private Integer userId;
	
	@Column(name = "PASSWORD", length = 25)
	private String password;

	@Column(name = "email", length = 25)
	private String email;
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	//@OneToMany(cascade = CascadeType.ALL)
	//@JoinColumn(name = "SYMBOL")
	//@LazyCollection(value=LazyCollectionOption.TRUE)
	//private Set<CLADailyPrices> dailyPrices = new HashSet<CLADailyPrices>();
}
